package queuedemo;

import java.util.LinkedList;

public class Test {
    public static void main(String[] args) {
        MyQueue queue = new MyQueue();
        queue.offer(1);
        queue.offer(2);
        queue.offer(3);
        System.out.println(queue.poll());//1
        System.out.println(queue.peek());//2
        System.out.println(queue.peek());//2
    }
}
